home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 049a / bn102b.zip / BILLNODE.DOC < prev    next >
Text File  |  1990-08-17  |  23KB  |  540 lines

  1.                    B I L L S T A T   &   B I L L N O D E
  2.                       Node Billing Software for QMail
  3.                                      
  4.                                      
  5.                                Version 1.02
  6.                                      
  7.                         Release Date August 1, 1990
  8.                                      
  9.                                      
  10.                     Copyright 1990, ALL RIGHTS RESERVED
  11.                   (c) Tower Enterprises -- Jeff Galbraith
  12.                                      
  13.                                      
  14. T a b l e   o f   C o n t e n t s
  15. ___________________________________________________________
  16.  
  17.                Requirements........................3
  18.                License.............................3
  19.                Distribution........................3
  20.                Warranty............................4
  21.                Introduction........................5
  22.                Disclaimer..........................5
  23.                Trademarks..........................5
  24.                Quick and Dirty.....................6
  25.                Full Installation...................8
  26.                BILLCFG.............................8
  27.                BILLSTAT............................8
  28.                BILLNODE............................9
  29.                Future Releases....................11
  30.                Trade Marks........................11
  31.                Registration.......................12
  32.                Registration Form..................12
  33.  
  34.  
  35.  
  36. R e q u i r e m e n t s
  37. ___________________________________________________________
  38.  
  39.  
  40. IBM or Compatible PC
  41. DOS 2.2 or greater
  42. Using QMail
  43.  
  44.                                      
  45.                                      
  46. L I C E N S E
  47. ___________________________________________________________
  48.  
  49.  
  50. Copyright 1990  by  Tower  Enterprises  --  Jeff  Galbraith.    ALL  RIGHTS
  51. RESERVED. COMMERCIAL  DISTRIBUTION AND/OR  USE OF THE PROGRAMS MENTIONED IN
  52. THIS DOCUMENTATION,  WHICH WERE  PROGRAMMED  BY  THE  AUTHOR,  IS  STRICTLY
  53. PROHIBITED WITHOUT WRITTEN CONSENT FROM THE AUTHOR.
  54.  
  55. For Non-commercial users, a payment of $40.00 US ($45.00 CDN) is requested.
  56. If you  feel the  programs contained  herein this  archive package  are  of
  57. benefit to  you, please  register your  copy. However,  the payment  is not
  58. mandatory. The  most that  is required for registration is a post card with
  59. your  name,   your  Net/Node   address,  data   phone,   an   address   for
  60. correspondence,  personal   telephone  for   correspondence,   and/or   any
  61. applicable comments.  This is  basically to let me know that the program is
  62. being  used  and  needs  to  be  updated.  Also,  any  bug  reports  and/or
  63. suggestions would be nice. See 'REGISTRATION' for details.
  64.  
  65.  
  66. D I S T R I B U T I O N
  67. ___________________________________________________________
  68.  
  69.  
  70. Distribution of  the programs  contained within  this archive and/or use of
  71. these programs is permitted under the following terms:
  72.  
  73. 1)   The executable files, documentation, and support files are distributed
  74.      as  one  archive,  without  alteration  or  addition  to  any  of  the
  75.      executable files,  documentation, and  support files. This also covers
  76.      any additional files that may be put in the archive. The archived file
  77.      must be distributed with the same files, neither adding or taking away
  78.      from the original archive.
  79.  
  80. 2)   That no  charge is to be levied for the distribution of the archive. A
  81.      cost of  no more  than $2.50  US may be charged for the media to which
  82.      the archive  is distributed  on. Any charge over this, must be sent to
  83.      the author  or any  charitable organization. The author "must" receive
  84.      an original  or photocopy  of the  Charity's receipt  if this  is  the
  85.      option you take.
  86.  
  87.  
  88.  
  89.  
  90. 3)   For the  purposes of  explanation, "COMMERCIAL  USE" is defined as any
  91.      corporation, government,  company, church,  or any  other organization
  92.      for the purpose of making a profit. This also includes BBS that levies
  93.      any fee for it's use.
  94.  
  95.  
  96.  
  97.  
  98. W A R R A N T Y
  99. ___________________________________________________________
  100.  
  101.  
  102. The  software   included  within   the  archive   as  well   as  with  this
  103. documentation, contains  NO WARRANTY, neither expressed or implied. The use
  104. of this  software is totally at the users own risk. By using this software,
  105. you also release the author of any liabilities or infringements.  In no way
  106. will Jeff  Galbraith or  Tower Enterprises be held responsible for damages,
  107. including lost  profits or  monies, or  any other  special,  incidental  or
  108. consequential damages  arising out  of the  use of  the BILLNODE program or
  109. it's subsidiary components.
  110.  
  111. You may contact the author at the address below:
  112.  
  113. Jeff Galbraith
  114. 236 Midglen Terrace S.E.
  115. Calgary, Alberta
  116. Canada - T2X 1R2
  117.  
  118.  
  119. FidoNet 1:134/21    (Mail Only node - receives Netmail only)
  120. FidoNet 1:134/40    (14.4 HST)
  121.  
  122. Feel free  to contact the author any time to share your comments about this
  123. software and/or licensing agreements, or bug reports/enhancements.
  124.  
  125.  
  126.  
  127. I N T R O D U C T I O N
  128. ___________________________________________________________
  129.  
  130.  
  131. This has  been a fun ordeal, I have to admit to that. What started out as a
  132. project back in December 1989, has finally evolved into the programs that I
  133. now present  before you  for your  use. There  was a version of the Billing
  134. software before  this one,  v1.00 (released  in January  for  beta  testing
  135. only). However,  that software  was created out of a very necessary need to
  136. have some  sort of  reliable billing process. Since then, our Net has grown
  137. substantially and  because of  this, the  limitations that  were written in
  138. that "quick-and-dirty" first version, were exceeded as everything was being
  139. done in  memory. Now,  I am  using an  advanced database  technique for the
  140. storage of  data while the program is being run. Once the ASCII data  files
  141. are written, the database files are destroyed as they are no longer needed.
  142. What this  mean, is  that there  is no limitation to the software any more.
  143. The only  limitation is the amount of storage space left on your hard drive
  144. during processing  time. In  most cases  approximately one  megabyte is all
  145. that should be necessary.
  146.  
  147. At the  release time  of this  software, one  other third-party  program is
  148. depended on  for the  billing files  and reports  to  be  posted.  That  is
  149. SENDMAIL. As  soon as  possible, I  will be working on a compatible program
  150. that can be shipped with this archive package.
  151.  
  152. | I have now completed MAKEMSG which BILLNODE takes full advantage of. This
  153. | utility program can also as a stand-alone program  for any other uses you
  154. | feel  fit to use it in. Suggestions range from posting echo rules (if you
  155. | are a moderator), to posting other reports as generated by other BBS
  156. |  utility programmers.
  157.  
  158. I would  like to  thank Henning Johansen (FidoNet 134/40) for a lot of help
  159. and understanding  most of the way through this entire project. I'd like to
  160. thank Tim  Bellaart (FidoNet  134/17  -  current  NEC)  for  his  time  and
  161. contributions as well.
  162.  
  163. One more finale note about licensing. Please, if you don't feel the need to
  164. pay the shareware fees, that's fine, but I wold appreciate a postcard. This
  165. will only  help me  in keeping  track of  the program  for update purposes.
  166. Also, if  it's not  being used at all (I hope it isn't as it is a darn good
  167. program), I guess there wouldn't be any need to update it to make it faster
  168. or more efficient. In other words, I like to know if my programming time is
  169. being useful.
  170.  
  171. I'd also like to say this is another "PROUDLY CANADIAN" shareware product!
  172.  
  173.  
  174.  
  175. Q U I C K   A N D   D I R T Y
  176. ___________________________________________________________
  177.  
  178.  
  179. Create a  subdirectory called  BILLS of  your route  directory.  UnZip  the
  180. BILLNODE program  into this  directory. Make  sure this directory gets into
  181. your DOS  path. If you put the BILLS  on C: drive, create another directory
  182. called C:\BILLS\WORK. Now make another called C:\BILLS\DATA.
  183.  
  184. Now edit  the IGNORE.LST  file. This is an ignore list that causes BILLSTAT
  185. to ignore  certain echo areas and nodes from being counted, thus in effect,
  186. discounting them from being billed. For example, put your echo feeds in the
  187. IGNORE.LST file  so Bills won't be generated for them. Make sure any echoes
  188. which are not billed also get put in. For example, if you have local echoes
  189. on the  same machine,  you don't  want to get billed for these, so put them
  190. in.
  191.  
  192. Now, run  BILLCFG and  fill in all applicable information. This step has to
  193. be done before BILLSTAT will run. Use the F1 key for help.
  194.  
  195. Now create  a batch  file. This  batch file should probably run when you do
  196. your maintenance  event. Make  sure your  batch file copies the QM.LOG file
  197. into your  C:\BILLS\WORK directory. Also, copy your AREAS.BBS file in there
  198. as well.  The batch  file should  now call  BILLSTAT. If you want a report,
  199. make  sure  you  use  the  -r  option.  After  it  is  finished,  copy  the
  200. BILLSTAT.[jul] (where  [jul] is  the current  Julian date)  file  into  the
  201. C:\BILLS\DATA directory.  If you  created a  report for a report echo, post
  202. it. Here is an example batch file:
  203.  
  204. : *************************************************************************
  205. :      BATCH FILE TO CREATE BILLSTAT DATA MODULES AND BILLSTAT.RPT
  206. :      Created 17/08/90                     Author: Jeff Galbraith
  207. : ************************************************************************
  208.  
  209. @echo off
  210. cd \BILLS\WORK
  211. copy C:\MAX\AREAS.BBS
  212. copy C:\LOGS\QM.LOG
  213. Billstat -s128 -iC:\BILLS\IGNORE.LST -r
  214. Copy BILLSTAT.* ..\DATA
  215. MAKEMSG -cBILLSTAT.RPT -dD:\MAIL\REPORTS -s134/21
  216. rem These next lines are optional if you want to save your "raw" data
  217. PKZIP -m areas_qm areas.bbs qm.log
  218. DAYSTAMP areas_qm 9
  219. MOVE areas_qm.* ..\OLD_LOGS /e/y
  220.  
  221. : *************************************************************************
  222.  
  223. This is an example only!
  224.  
  225.  
  226.  
  227. At  the  end  of  the  month,  change  directories  to  your  C:\BILLS\DATA
  228. directory. Then  load BILLNODE.  This is  an interactive  program requiring
  229. user input  as  defined  by  your  telephone  bill.  Input  all  applicable
  230. information and  let here  rip. If everything went well, BILLNODE creates a
  231. batch file  called POST.BAT. Change directories to your matrix area and run
  232. the POST.BAT  file by  typing the  following at the command line (AFTER YOU
  233. ARE IN YOUR MATRIX AREA!)
  234.  
  235. C:\BILLS\DATA\POST
  236.  
  237. This will  post all  of the  bills to  messages in  your matrix  area using
  238. MAKEMSG. Two  other files  were create by BILLNODE. One called BILLNODE.SUM
  239. which is  a condensed  file containing only the billing totals of each node
  240. and BILLNODE.RPT  which is  basically the  same as  BILLSTAT.RPT but  is  a
  241. cumulative report  for the  month. Both  of these files support the MAKEMSG
  242. format for easy echomail posting into a report area for the Net.
  243.  
  244. You are  responsible for  the cleanup  of all  files in  the DATA directory
  245. including the  billing files  which are  hexadecimal  numbers  representing
  246. net/node numbers.  These files have no extensions and should be easy enough
  247. to clean  up. The  used BILLSTAT.[jul]  files are your responsibility. I am
  248. taking suggestions  if users  want BILLNODE to do something with them, like
  249. move them to a separate directory. Give me feedback and we'll get something
  250. going.
  251.  
  252. So there  you have  it. I  suggest continue  reading so  you understand the
  253. command line  options and other intricate details that the programs have to
  254. offer.
  255.  
  256.  
  257.  
  258. F U L L   I N S T A L L A T I O N
  259. ___________________________________________________________
  260.  
  261.                                      
  262. Place all  the files into a directory which is in your DOS Path. This is so
  263. you will  be able  to run  them from  anywhere on  your hard drive with out
  264. problems. Most  importantly, the  database dictionary,  BILLSTAT.DBD,  MUST
  265. reside in  the same  directories as the executable files. BILLNODE.HLP must
  266. also reside in this directory.
  267.  
  268.  
  269. B I L L C F G
  270. ___________________________________________________________
  271.  
  272.                                      
  273. To get  started, you  must first  run the configuration file, BILLCFG. This
  274. file creates  a configuration  file which  both BILLSTAT  and BILLNODE read
  275. during there  execution periods.  Please be concise and fill in everything.
  276. Help, using  F1, is  provided. This  configuration file, BILLNODE.CFG, must
  277. reside in the same directory as the executables.
  278.  
  279.  
  280. B I L L S T A T
  281. ___________________________________________________________
  282.  
  283.  
  284. Once the  configuration file  is created,  it is  okay to  run the BILLSTAT
  285. program. The  billstat program  requires  two  files  to  be  in  the  same
  286. directory. The  files are  QM.LOG and  your AREAS.BBS  file. There  are  no
  287. exceptions to  these names,  so if  you have them named otherwise, you will
  288. need to  rename them  respectively. It  is best to use a work directory and
  289. copy these  two files  in  there.  Then  change  directories  to  the  work
  290. directory.
  291.  
  292. BILLSTAT parses  the QM.LOG  file for  the echoes that arrived and how many
  293. messages in  each. It uses the AREAS.BBS file to match areas with nodes. It
  294. would be  a good  idea to store a copy of your QM.LOG and AREAS.BBS in case
  295. you needed to regenerate the data file again.
  296.  
  297. BILLSTAT has a number of options. Here is the syntax:
  298.  
  299. BILLSTAT [-h] [-s<num>] [-i<[path]list>] [-r]
  300.  
  301. -h   This option  will give  you the  help screen.  This should be the only
  302.      option when used as it overrides all other options and then exits.
  303. -s   This is  to Set  the internal  cache page size. The default is 32, but
  304.      you will get a much faster performance if you can set it to 384. to do
  305.      this use  -s384. you  may need to test which size to use to see what's
  306.      best for  your system.  If the  program stops, after starting (it will
  307.      tell you  if there  is enough  memory), try again with a lower number.
  308.      Try and  use multiples  of 32  or 64  for best  performance. A  higher
  309.      number does less disk seeks and can speed up the application by 50%.
  310. -i   This is  the ignore list. It goes like this -iList.dat, where List.dat
  311.      (or any  other file  name) is a file containing a list of nodes and/or
  312.      echoes to ignore. This is so your echofeed hub doesn't get charged, or
  313.      a "free" echo doesn't get charged out as well. This gives you a lot of
  314.      control of  what gets  charge and  who gets charged. To ignore a node,
  315.      the syntax  in the  file should be @NODE=134/21 and to ignore an echo,
  316.      the syntax  should be  @ECHO=cellblk17. The @NODE=and @ECHO= should be
  317.      capitalized and  each instance  should reside  on a  new  line.  THERE
  318.      SHOULD BE NO SPACES ANYWHERE, NOT EVEN AFTER THE LINE.
  319. -r   This is  to tell  BILLSTAT to create a daily report. The report's name
  320.      is BILLSTAT.RPT and has header information for MAKEMSG to post it to a
  321.      report echo.
  322.  
  323.  
  324.  
  325. A typical call to BILLSTAT would look like the following:
  326.  
  327. BILLSTAT -s384 -iLIST.DAT -r
  328.  
  329. The following two files would be created:
  330. 1) BILLSTAT.RPT (from the -r) and
  331. 2) BILLSTAT.[jul] (where jul is the current date's Julian day of the year).
  332.  
  333. You need  to keep the BILLSTAT.[jul] files somewhere safe. Typically, these
  334. file range  from 2-16  thousand bytes  and compress  very  easily  into  an
  335. archived file.  These are  the files  that BILLNODE  uses when it does it's
  336. monthly billing processes.
  337.  
  338. The report  file can  be put  into a  report  echo  so  that  any  who  are
  339. interested can  see the  daily statistics of how many messages cam into the
  340. net and who many messages each node was billed.
  341.  
  342. This can  all be accomplished via a batch file set up for your system and a
  343. little ingenuity.
  344.  
  345.  
  346. B I L L N O D E
  347. ___________________________________________________________
  348.  
  349.  
  350. BILLNODE is an interactive program that needs operator care. BILLNODE has
  351. two options. Here is the syntax:
  352.  
  353. BILLNODE [-h] [s<num>]
  354.  
  355. -h   This option  will give  you the  help screen.  This should be the only
  356.      option when used as it overrides all other options and then exits.
  357. -s   This is  to Set  the internal  cache page size. The default is 32, but
  358.      you will get a much faster performance if you can set it to 384. to do
  359.      this use  -s384. you  may need to test which size to use to see what's
  360.      best for  your system.  If the  program stops, after starting (it will
  361.      tell you  if there  is enough  memory), try again with a lower number.
  362.      Try and  use multiples  of 32  or 64  for best  performance. A  higher
  363.      number does less disk seeks and can speed up the application by 50%.
  364.  
  365. A typical call to BILLNODE would look like the following:
  366.  
  367. BILLNODE -s384
  368.  
  369. An interactive  screen, allowing  you to  enter data, comes up. Help is now
  370. available for each field, through the use of the F1 key. Some of the fields
  371. should already  be filled  according to what was put into the configuration
  372. file via BILLCFG.
  373.  
  374. Here is the screen:
  375.  
  376.         BILLNODE v1.02 Copyright 1990, ALL RIGHTS RESERVED.
  377.       (c) Tower Enterprises -- Jeff Galbraith, FidoNet (1:134/21)
  378.  
  379.     START DATE <DD-MM-YY>:   -  -          TOTAL BILL:
  380.     END DATE      <DD-MM-YY>:   -  -
  381.  
  382. SENDING NODE:  134/1
  383.     TO:              All
  384.     FROM:        NEC 134
  385.     SUBJECT: NET 134 ECHOMAIL BILLINGS
  386.  
  387.        COSTS    COMMENTS
  388.     1.$   0.00  Toll Charges
  389.     2.$   0.00  11% Communications Tax
  390.     3.$   0.00  Phone Line Rental
  391.     4.$   0.00  NC Charge
  392.     5.$   0.00  20% Equipment/Misc. Fund
  393.  
  394.  
  395.  
  396. The first  thing you  do is  add a  start date  and an  ending date  of the
  397. billing. This  is most  appropriately the  to and  from dates  off of  your
  398. telephone bill.
  399.  
  400. Then you  need to  add the "SENDING NODE" number. This is your node address
  401. and is used by MAKEMSG for the creation of the billing messages.
  402.  
  403. Then, add  the TO,  FROM and SUBJECT fields. This is all used by MAKEMSG as
  404. well in creating the messages.
  405.  
  406. Now, add  the cost  (COSTS) of  each item  being billed, plus an additional
  407. comment (COMMENTS - the comments shown are example only) beside it. This is
  408. placed on  each bill  so that the billed node knows what the costs were and
  409. how much.
  410.  
  411. When you  get to the last comment field and press enter, the program starts
  412. parsing the  applicable BILLSTAT.[jul]  files for the information it needs.
  413. It displays  a run down of everything it is doing. When it is finished, you
  414. will have the following files:
  415.  
  416. BILLNODE.RPT
  417.      - a monthly report similar to BILLSTAT.RPT.
  418. BILLNODE.SUM
  419.      - a summary file of charges and what each node is to be invoiced.
  420. POST.BAT
  421.      - a  batch file  to post  the billing  files to  the matrix area using
  422.        MAKEMSG.
  423. [hex_num]
  424.      - this  is a  file containing  the information each node is to receive
  425.        concerning it's  billing status.  The file  name is  the hexadecimal
  426.        number of  the node  address to  receive the  billing. For  example:
  427.        134/21 becomes  filename 00860015. There should be a number of these
  428.        files depending on how big your net is.
  429.  
  430. The POST.BAT  that was  created, uses the path where the hex filenames were
  431. created, so  it is best to post them right away.  Again, another batch file
  432. is best  for this.  This batch file could change directories to your matrix
  433. area and then call the POST.BAT batch file.
  434.  
  435. [=========================================================================]
  436. NOTE ABOUT MAKEMSG:
  437.  
  438. MAKEMSG must  be in the directory where the message is to be created unless
  439. the path  is given  with the  -d option.  If you  are posting  the  billing
  440. statements, you need to be in the matrix area when you run POST.BAT as well
  441. as have  MAKEMSG.EXE in  your path. If you are posting reports, you need to
  442. be in the directory of where the messages are to be posted.
  443. [=========================================================================]
  444.  
  445.  
  446.  
  447. If at  anytime, BILLNODE cannot find an appropriate BILLSTAT.[jul] file, it
  448. will pause  and ask  whether it  should ignore  this and  continue. If  you
  449. choose 'No', the program will exit. If you choose 'Yes', then BILLNODE will
  450. average the  bill out  with the  data that  is available.  If you have been
  451. receiving regular  echomail (is  that an  OXYMORON?), then  the bills  will
  452. probably be what they would have been anyhow. If you haven't been receiving
  453. regular echomail,  really, there's nothing you can do. The bill may sway to
  454. or from different nodes (still beats doing it by hand).
  455.  
  456. The billings for each of the nodes may have a difference if you add up each
  457. cost of  each echo  billed and  compare that with the billed total. This is
  458. because there is no rounding up of the individual echo charges as this goes
  459. to six decimal places. However, the charged total is correct.
  460.  
  461.  
  462.  
  463. F U T U R E  R E L E A S E S
  464. ___________________________________________________________
  465.  
  466.  
  467. In the future BILLNODE will have a control file that will allow you to
  468. basically design a form and have BILLNODE use it as a template for writing
  469. out your billing statements. This way, you add things like addresses to
  470. send the cheques to, etc.
  471.  
  472. If you have ideas for future releases, please let me know. Any way to make
  473. this software run better and more efficiently, the more everyone will be
  474. satisfied. Anyone who gives me an original suggestion that is later
  475. incorporated, will get credit for it.
  476.  
  477.  
  478.  
  479. T r a d e m a r k s
  480. ___________________________________________________________
  481.  
  482.  
  483. IBM is a registered trademark of International Business Machines.
  484. QuickBasic is the registered trademark of MicroSoft Corporation.
  485. MS-DOS is the registered trademark of MicroSoft Corporation.
  486. Turbo C is the registered trademark of Borland International.
  487. Anyone and/or Corporation left from this list does not mean that I do not
  488. give them credit.
  489.  
  490.  
  491.  
  492. R E G I S T R A T I O N
  493. ___________________________________________________________
  494.  
  495.  
  496. As I mentioned before, it is not required to pay a registration for this
  497. product. You may (I encourage all shareware devotees to) pay with your
  498. registration if you wish. As this software is made for the NET in mind and
  499. not just a single person, it really shouldn't be too hard to throw in the
  500. bucks. However, if you do not wish to pay, I am still asking that you
  501. register the product so I know how many installations are out there and
  502. whether continued service warrants the up keeping of these programs (I hope
  503. so as believe they are pretty darned good! <grin>). Anyway, fill out the
  504. form below, or send me a postcard with the same information. My sincerest
  505. thank you.
  506.  
  507. ---------------------------------------------------------------------------
  508.  
  509.  
  510.                              Registration Form
  511.                                      
  512.                                      
  513.                                      
  514. FULL NET ADDRESS :                 
  515.  
  516. NEC'S ADDRESS    :
  517.  
  518. NC'S ADDRESS     :
  519.  
  520. REGISTRANT'S NAME:
  521. (usually NEC)
  522.  
  523. DATA NUMBER      :
  524.  
  525. VOICE NUMBER     :
  526.  
  527. REGISTRATION INCLUDED?: Yes[ ]  No[ ]
  528. ($45.00CDN - $40.00US, non-Canadian orders add $5.00)
  529.  
  530. COMMENTS:
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.